﻿using System.ComponentModel.DataAnnotations;

namespace Headlight.Model
{
	public class Vehicle
	{
		public int VehicleID { get; set; }

		[Required(ErrorMessage = "Required.")]
		public int Year { get; set; }

		[Required(ErrorMessage = "Required.")]
		public string Make { get; set; }

		[Required(ErrorMessage = "Required.")]
		public string Model { get; set; }

		[Required(ErrorMessage = "Required.")]
		public bool IsLeased { get; set; }

		[Required(ErrorMessage = "Required.")]
		public string PrimaryUse { get; set; }

        [Required(ErrorMessage = "eqweqweq")]
        //[DataType(DataType.typeof(Int32), ErrorMessage="Valid Value")]
		public int DailyMileage { get; set; }

        [Required(ErrorMessage = "This field is required.")]
		public int AnnualMileage { get; set; }


		public int QuoteID { get; set; }
	}
}